home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 5948 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: misa.extern.fh-hannover.de!boose
  2. Date: 21 Apr 1996 19:05:00 +0200
  3. From: boose@misa.extern.fh-hannover.de (Andreas Boose)
  4. Newsgroups: comp.sys.cbm
  5. Message-ID: <67HBDKtwmrB@misa.extern.fh-hannover.de>
  6. References: <4ktud1$4jh@madeline.INS.CWRU.Edu> <umcwikla.829689480@toliman>
  7. Subject: Re: Adding a 6522 to my c64
  8. X-Newsreader: CrossPoint v3.11 R/A768
  9. Organization: Private Site, Lehrte, Germany
  10.  
  11. umcwikla@cc.umanitoba.ca (Tom Cwikla) writes:
  12.  
  13. >I don't think you need to do anything special
  14. >to add a 6522. I added another 6526 on my expansion board without any major
  15. >difficulties. All you really need is to attach the data, address and clock
  16. >lines from the C64 to the appropriate pins on the 6526. Then just add some
  17. >address decode logic (I used a 74LS154) and it should work just fine.
  18.  
  19. Tom, the problem is, that the 6522 uses the old style 6502 timing. That
  20. means it expects the address to be valid at the raising edge of phi2. This
  21. is hardly true for C64 systems since just 20ns before phi2 raises, AEC is
  22. switched by the VIC-II. That are just lousy 20ns to switch from VIC-II to
  23. CPU addresses, which is too tight for real life systems. The 6526 'knows'
  24. this problem and it expects the address to be valid 100ns *after* phi2 is
  25. risen, giving the system 120ns to setup up the proper CPU addresses.
  26.  
  27. This makes the 6526 very universal, it operates in both 6502 and 6510
  28. based systems without a problem. But connecting a 6522 to a C64 requires
  29. the raising edge of phi2 to be delayed by ~100ns. In many applications this
  30. is done with a simple 7474 flip-flop:
  31.  
  32.                                7474
  33.                              ________
  34.                             |        |
  35.                          ,--|-RESET  |
  36.                          |  |        |
  37.              phi2 -------*--|DATA   Q|------------- phi2@6522
  38.                             |        |
  39.         dot-clock ----------|CLOCK   |
  40.                             |        |
  41.                             |________|
  42.  
  43.  
  44. MfG Andreas
  45.  
  46.